package com.hirsi.common.core.enums;

import com.hirsi.common.core.exception.IExceptionEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * 请求错误状态码枚举
 */
@Getter
@AllArgsConstructor
public enum ExceptionStatusEnum implements IExceptionEnum {

    NOT_FOUND(HttpStatus.NOT_FOUND, 404, "请求接口不存在"),
    FLOW_CONTROL(HttpStatus.FORBIDDEN, 400, "请求较快，请稍后重试"),
    USER_STATUS_EXCEPTION(HttpStatus.FORBIDDEN, 400, "用户状态异常");

    private HttpStatus status;

    private Integer code;

    private String msg;
}
